cssselector: Reserve more bits for enum
authorBenjamin Otte <otte@redhat.com>
Thu, 11 Dec 2014 11:45:20 +0000 (12:45 +0100)
committerBenjamin Otte <otte@redhat.com>
Thu, 11 Dec 2014 11:47:54 +0000 (12:47 +0100)
Apparently some compilers make enums an int and then we get negative
values.

https://bugzilla.gnome.org/show_bug.cgi?id=741375

gtk/gtkcssselector.c

index ec49884c8fd3cc0b496800e8c0042c059306dbad..9d0d336ae640fa278b379a2c45c0aa4926184a65 100644 (file)
@@ -71,7 +71,7 @@ typedef enum {
   POSITION_ONLY,
   POSITION_SORTED
 } PositionType;
-#define POSITION_TYPE_BITS 2
+#define POSITION_TYPE_BITS 4
 #define POSITION_NUMBER_BITS ((sizeof (gpointer) * 8 - POSITION_TYPE_BITS) / 2)
 
 union _GtkCssSelector